﻿using _2112A_2_MES._XiangHe;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace _2112A_2_MES.ChuBoWens
{
    /// <summary>
    /// 物料产品管理
    /// </summary>
    public interface IProductEntryFormService : IApplicationService
    {
        /// <summary>
        /// 获取库存现有量列表
        /// </summary>
        /// <param name="itemname"></param>
        /// <param name="warehousename"></param>
        /// <param name="expiredate"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<InterSelect<object>> GetProductEntryFormList(string? itemname, string? warehousename, string? expiredate, int pageIndex, int pageSize);

        /// <summary>
        /// 新增库存现有量
        /// </summary>
        /// <param name="productentryform"></param>
        /// <returns></returns>
        Task<int> AddProductEntryForm(ProductEntryForm productentryform);

        /// <summary>
        /// 删除库存现有量
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteProductEntryForm(int id);

        /// <summary>
        /// 获取库存现有量
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ProductEntryForm> GetProductEntryForm(int id);

        /// <summary>
        /// 修改库存现有量
        /// </summary>
        /// <param name="productentryform"></param>
        /// <returns></returns>
        Task<int> UpdateProductEntryForm(ProductEntryFormDTO productentryform);
    }
}
